how to add values to an array in laravel

128

$array = array('foo' => 'bar');

$array = array_add($array, 'key', 'value');
<?php
$stack = array("orange", "banana");
array_push($stack, "apple", "raspberry");
?>

Comments

Submit
0 Comments